import request from "@/utils/request";

// 查询工作任务列表
export function listWorkTask(query) {
  return request({
    url: "/police-work-task/listPage",
    method: "get",
    params: query,
  });
}

// 查询工作任务详细（根据Id查询单个）
export function getWorkTaskById(query) {
  return request({
    url: "/police-work-task/selectOne",
    method: "get",
    params: query,
  });
}

// 新增工作任务
export function addWorkTask(data) {
  return request({
    url: "/police-work-task/add",
    method: "post",
    data: data,
  });
}

// 修改工作任务
export function updateWorkTask(data) {
  return request({
    url: "/police-work-task/update",
    method: "put",
    data: data,
  });
}

// 删除工作任务
export function delWorkTask(Id) {
  return request({
    url: "/police-work-task/delete/" + Id,
    method: "delete",
  });
}

// 消息推送
export function pushMessage(query) {
  return request({
    url: "/police-work-task/push",
    method: "get",
    params: query,
  });
}
